package net.oschina.zdc.reactive;

import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

/**
 * 
 * @author ibm
 *
 */
public class Example {
    public static void main(String[] args) {
		List<String> list = Arrays.asList("One", "Two", "Three", "Four", "Five"); // (1)
		Iterator<String> iterator = list.iterator(); // (2)
		while (iterator.hasNext()) {
			System.out.println(iterator.next());
		}
	}
}
